package com.alisls.shequtao.service.user.exception;

import com.alisls.shequtao.common.core.exception.CommonEnumException;
import com.alisls.shequtao.service.user.constant.UserExceptionEnum;
import lombok.AllArgsConstructor;

/**
 * 用户枚举异常
 *
 * @author Ke Wang
 */
@AllArgsConstructor
public class UserEnumException extends CommonEnumException {

    private UserExceptionEnum userExceptionEnum;

    public static UserEnumException of(UserExceptionEnum userExceptionEnum) {
        return new UserEnumException(userExceptionEnum);
    }

}
